package string;

public class StartsWithDemo {//endWith

    public static void main(String[] args) {
        String str="www.heitao.com";

        boolean start =str.startsWith("www");
        System.out.println(start);

        boolean end=str.endsWith("com");
        System.out.println(end);

        boolean end1=str.endsWith(".jpg");
        System.out.println(end1);
    }

}
